function [ value ] = calc_recall( actual_label, predicted_label )
%CALC_RECALL Summary of this function goes here
%   Detailed explanation goes here

n_tp = nnz(actual_label == 1 & predicted_label == 1);
n_actual_positive = nnz(actual_label == 1);

if n_actual_positive == 0 && n_tp == 0
    value = 1;
    return
else
    value = n_tp/n_actual_positive;
    return
end

end

